package net.sx.minemodule.mvp.presenters;

import com.PayApiUtils;
import com.kedll.library.mvp.BasePresenter;
import com.pay.PaySDKHelp;

import net.sx.minemodule.MineApiUtils;
import net.sx.minemodule.mvp.views.MineOrderPayView;
import net.sx.minemodule.mvp.views.MineUserInfoView;

import java.util.List;

public class MineOrderPayPresenter extends BasePresenter<MineOrderPayView> {
    public MineOrderPayPresenter(MineOrderPayView view) {
        super(view);
    }

    public void pay(String payType, String content, String addreSid) {
        MineApiUtils.setOrder(payType, content, addreSid, jsonObject -> {

        }, throwable -> {

        });
    }

    public void orderPay(List<String> orderList, String payType) {
        PayApiUtils.orderPay(orderList, payType, wxPayBean -> {
            mView.doActivityPay(wxPayBean, payType);
        }, throwable -> {
        });

    }
}
